Skip to content

fix: Multiple issues with MCP query_(rules/digests)#27

Merged
renecannao merged 5 commits intov3.1-vecfrom
v3.1-MCP2_QR
Jan 22, 2026
Merged

fix: Multiple issues with MCP query_(rules/digests)#27
renecannao merged 5 commits intov3.1-vecfrom
v3.1-MCP2_QR

Conversation

@renecannao
Copy link

  • Fixed invalid memory accesses for tables:
    • mcp_query_rules
    • stats_mcp_query_rules
    • stats_mcp_query_digests
  • Fixed inactive 'mcp_query_rules' being loaded to runtime.
  • Fixed hash computation in 'compute_mcp_digest'.
  • Fixed invalid escaping during 'stats_mcp_query_digests' gen.
  • Fixed digest generation for MCP arguments:
    • SQL queries are now preserved using 'mysql_query_digest_and_first_comment'.
    • TODO: Options for the tokenizer are right now hardcoded.
  • Added initial testing and testing plan for MCP query_(rules/digests).
    • TODO: Test finished on phase8. Timeouts destroy the MCP connection, leaving it unusable for subsequent queries this should be fixed for continuing testing.
  • TODO: There are several limitations to fix in 'validate_readonly_query'. This reflect in some query hacks in the testing.
    • 'SELECT' starting with comments (--) gets flagged as non-read.
    • 'SELECT' must have a 'SELECT .* FROM' structure. While common, simple testing queries many times lack this form.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants